package cn.edu.mju.common.entity.vo.share;

import cn.edu.mju.common.entity.pojo.FileInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShareVO {
    private String shareId;
    private String userId;
    private String fileId;
    private Integer validType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date shareTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expireTime;
    private String nickName;
    private String fileName;
    private Boolean currentUser;
    private String avatar;
    private String  shareUserId;
    private String filePid;
    private FileInfo fileInfo;

    public String getShareUserId() {
        return shareUserId;
    }

    public void setShareUserId(String shareUserId) {
        this.shareUserId = shareUserId;
    }

//    public ShareVO(String shareId, String fileId, String userId, String fileName, String nickName, String avatar) {
//        this.shareId = shareId;
//        this.fileId = fileId;
//        this.userId = userId;
//        this.fileName = fileName;
//        this.nickName = nickName;
//        this.avatar = avatar;
//    }


}
